package linker.setting;

import javax.swing.JFrame;

import linker.window.WindowSaver;

/**
 * 
 * @version linker 0.93
 * @author Jianfeng jianfeng.linker@gmail.com
 * 
 */

public class SettingWindow extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private static SettingWindow settingWindow = null;

	public SettingWindow() {
		super("Setting");
		setName("Setting window");

		setSize(400, 500);
		setLocationRelativeTo(null);
		try {
			WindowSaver.getWindowSaver().loadSettings(this);
		} catch (Exception e) {
			e.printStackTrace();
		}
		setVisible(false);
	}

	public static SettingWindow getSettingWindow() {
		if (settingWindow == null)
			settingWindow = new SettingWindow();

		return settingWindow;

	}

}
